package com.online_exam.service.impl;

import com.online_exam.domain.TextContent;
import com.online_exam.repository.TextContentMapper;
import com.online_exam.service.TextContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TextContentServiceImpl implements TextContentService {
    @Autowired
    TextContentMapper textContentMapper;
    @Override
    public int insertTextContent(TextContent textContent) {
        return textContentMapper.insertTextContent(textContent);
    }

    @Override
    public TextContent selectById(Integer id) {
        return textContentMapper.select(id);
    }

    @Override
    public int update(TextContent textContent) {
        return textContentMapper.update(textContent);
    }

    @Override
    public int updateTextContent(TextContent textContent) {
        return textContentMapper.updateTextContent(textContent);
    }
}
